package org.dreamwork.jasmine2.annotation;

import org.dreamwork.jasmine2.ajax.RequestMethod;
import org.dreamwork.util.DefaultConverter;
import org.dreamwork.util.IConverter;

import java.lang.annotation.*;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-12-10
 * Time: 14:47:17
 */
@Target (ElementType.METHOD)
@Retention (RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface AjaxMethod {
    boolean support () default true;
    String contentType () default "text/plain;charset=UTF-8";
    Class<? extends IConverter> converter () default DefaultConverter.class;
    RequestMethod method () default RequestMethod.GET;    
}
